.class public Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;
.super Landroid/widget/FrameLayout;
.source "TouchDetectorFrameLayout.java"


# instance fields
.field private mMultiTouchListener:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

.field private mTargetView:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 18
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 19
    invoke-direct {p0}, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->init()V

    .line 20
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 23
    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 24
    invoke-direct {p0}, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->init()V

    .line 25
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyleAttr"    # I

    .prologue
    .line 28
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 29
    invoke-direct {p0}, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->init()V

    .line 30
    return-void
.end method

.method private init()V
    .registers 2

    .prologue
    .line 33
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->setMotionEventSplittingEnabled(Z)V

    .line 34
    new-instance v0, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    invoke-direct {v0}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mMultiTouchListener:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    .line 35
    return-void
.end method


# virtual methods
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 3
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mTargetView:Landroid/view/View;

    if-eqz v0, :cond_e

    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mMultiTouchListener:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    invoke-virtual {v0, p0, p1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z

    move-result v0

    if-eqz v0, :cond_e

    .line 59
    const/4 v0, 0x1

    .line 62
    :goto_d
    return v0

    :cond_e
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_d
.end method

.method public setMaxScale(F)V
    .registers 3
    .param p1, "maxScale"    # F

    .prologue
    .line 47
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mMultiTouchListener:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    invoke-virtual {v0, p1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->setMaxScale(F)V

    .line 48
    return-void
.end method

.method public setMinScale(F)V
    .registers 3
    .param p1, "minScale"    # F

    .prologue
    .line 43
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mMultiTouchListener:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    invoke-virtual {v0, p1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->setMinScale(F)V

    .line 44
    return-void
.end method

.method public setTargetView(Landroid/view/View;)V
    .registers 3
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 38
    iput-object p1, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mTargetView:Landroid/view/View;

    .line 39
    iget-object v0, p0, Lcom/zuimeia/ui/touchdetector/TouchDetectorFrameLayout;->mMultiTouchListener:Lcom/zuimeia/ui/touchdetector/MultiTouchListener;

    invoke-virtual {v0, p1}, Lcom/zuimeia/ui/touchdetector/MultiTouchListener;->setTargetView(Landroid/view/View;)V

    .line 40
    return-void
.end method
